var config = {
  title: '斗破',
  query: '斗破',
  url: 'http://www.winbaicai.com',
  from: '渠道号'
}
$.ajax({
  url: 'http://rec.m.sm.cn',
  data:{
    app:'related_query',
    type:'json',
    query: config.query,
    url: config.url,
    title: config.title,
    from: config.from,
    athena_allow_origin:'rec.uc.cn',
    time: Date.now()
  },
  dataType: 'json',
  success: function(res){
    if(res.status===1){
      var colors = ['#49B4E0', '#FCBDA2', '#EBADBD', '#D5C2AF', '#C0BDE5', '#CBCC7F', '#FFDA7F', '#8dd0c3', '#bbbfc6', '#a4d9ef', '#bbdb98'];
      var words = [];
      $.each(res.hits, function(i, v){
        words.push({
          title: v.word,
          url: 'https://so.m.sm.cn/s?q='+config.query+'&from='+config.from
        })
      });
      $('#responsive').tagsAd({
        // leadWord: [{'title': '全部', 'url': ''},{'title': '全部2', 'url': ''}],
        words: words,
        // colors: colors,
        borderWidth: 2,
        isFixedWidth: true,
        width: 800,
        height: 100
      });
    }
  }
});